package com.justech.eat.service.component.impl;

import com.justech.eat.service.component.UserTokenService;
import com.justech.eat.util.aes.AES;
import org.springframework.stereotype.Component;

/**
 * @program: eat-service
 * @description:
 * @author: feifei.li
 * @create: 2020-06-15 15:49
 **/
@Component
public class WebUserTokenService implements UserTokenService {
    /**
     * 获取用户信息
     *
     * @param token 已加密token
     * @return
     */
    @Override
    public String getJobNumber(String token) {
        AES instance = AES.getInstance();
        String decrypt = instance.decrypt(token);
        return decrypt;
    }
}
